Skip to content

Read internal tracing policy without exposing registration credentials - #4693

Closed
zero51 wants to merge 1 commit into
mainfrom
db/internal-telemetry-policy
Closed

zero51 wants to merge 1 commit into
mainfrom
db/internal-telemetry-policy

Conversation

@zero51

@zero51 zero51 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The goal is to persist Pipelines OpenTelemetry (OTel) traces in ClickHouse for internal use, without relying on organisation tracing configuration or opt-in. Initially, this is limited to Buildkite-only dogfooding. This stack adds the agent-side support, separate from customer tracing.

Stack (land in order): #4693 → #4694 → #4695 → #4692.

Description

This PR decodes the registration exporter and per-job internal_tracing decision without enabling export.

Registration responses can contain collector credentials. Suppress their HTTP debug dumps and error-body snippets, including when internal tracing is disabled.

Context

Part 1/4 of the agent telemetry stack. Supports https://github.com/buildkite/buildkite/pull/39916, following https://github.com/buildkite/buildkite/pull/39878.

Public documentation

Status: not needed: Do not document

Deployment

Can deploy before the remaining PRs. Does not advertise internal tracing support or export spans. Registration diagnostics contain less detail.

Rollback

Revert this PR. Once later stack entries land, revert them first in reverse order.

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .).

Locally, API package race tests, whole-repository compile checks, scoped lint and 12 inactive-capability checks pass. The full suite was not rerun locally for this stack. The test checkbox uses the template's automatic-CI allowance: build 15555.

Disclosures / Credits

Amp wrote the implementation and tests and prepared the stack.

Accept separate collector settings and per-job tracing decisions without enabling export. Registration responses can contain credentials, so keep their bodies out of HTTP diagnostics.

Amp-Thread-ID: https://ampcode.com/threads/T-01a138c5-1e0c-75ab-982c-47b120e66629
Co-authored-by: Amp <amp@ampcode.com>
@zero51
zero51 requested a review from a team as a code owner November 26, 2026 02:08
@zero51 zero51 added security change Not a new feature, but a user observable non-breaking behavior change. labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change Not a new feature, but a user observable non-breaking behavior change. security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant